cURL
curl --request GET \ --url https://api.hyperline.co/v1/customers/{id}/payment-methods \ --header 'Authorization: Bearer <token>'
{ "meta": { "total": 1, "taken": 1, "skipped": 0, "approximateCount": false }, "data": [ { "id": "pm_1xMpj5bwRqN7LM", "status": "active", "type": "card", "last_4_digits": 2718, "expiration_date": "2027-11", "brand": "visa" } ] }
Retrieve payment methods attached to a customer.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Total of existing items.
1
Number of items returned.
Number of items skipped.
0
Whether the total count is approximate.
false
List of PaymentMethod.
Default payment method of the customer. Only applies to card and direct debit.
Payment method ID. Payment method ID.
"pm_1xMpj5bwRqN7LM"
Payment method status.
active
pending
"active"
Payment method type.
card
apple_pay
google_pay
direct_debit_sepa
direct_debit_ach
direct_debit_bacs
stripe_link
"card"
Last four digits of the card. Last four digits of the card.
2718
Expiration date of the card using YYYY-MM format. Expiration date of the card using YYYY-MM format.
"2027-11"
Brand of the card. Brand of the card.
"visa"
Was this page helpful?